<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script src="./process.js"></script>
  <script>
    a = 1;
    //  console.log(arguments);
    function add() {
      console.log(arguments);
      // let b=2//全局报错not defined
      b = 2; //全局可以拿到
    }
    add();
    console.log(b);
  </script>
</html>
